package com.cqu.hhx.driver.mapper;

import com.cqu.hhx.driver.entity.FinishOrder;
import com.cqu.hhx.driver.entity.NewOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.sql.Date;
import java.util.List;

/**
 * @author DJ
 * @create 2020-05-24 22:22
 * 乘客下单
 */
@Mapper
public interface NewOrderMapper {
    //乘客新建订单
    public Integer addNewOrder(NewOrder newOrder);
    //通过乘客Id获取订单
    public NewOrder getOrder(@Param("customerId") Long customerId);
    //获取所有的新建订单
    public List<NewOrder> getAllNewOrder();
    //通过订单Id获取订单信息
    public NewOrder getOrderByOrderId(@Param("orderId") Long orderId);
    //通过订单Id删除订单信息
    public int deleteOrderByOrderId(@Param("orderId") Long orderId);
}
